import { Component, OnInit } from '@angular/core';
import { Router,ActivatedRoute  } from "@angular/router";

@Component({
  selector: 'app-news',
  templateUrl: './news.page.html',
  styleUrls: ['./news.page.scss'],
})
export class NewsPage implements OnInit {
  public newtitle:any
  public newtime:any
  public newindex:any
  constructor(
    public activateRoute: ActivatedRoute,
  ) { }

  ngOnInit() {
    this.activateRoute.queryParams.subscribe(queryParam => {
      this.newtitle = queryParam.info,
      this.newtime = queryParam.time,
      this.newindex = queryParam.index
    })
  }

}
